import request from '@/utils/request'
import URL from '@/api/baseUrl'
export default class ProvinceCityArea {
  /**
   * 查询
   * @param {} data
   */
  static areaList (data = {}) {
    return request.get(`${URL.comBasic}/bas-area/list`, data)
  }
  /**
   * 查询不分页
   * @param {} data
   */
  static areaQueryList (data = {}) {
    return request.get(`${URL.comBasic}/bas-area/queryList`, data)
  }
  /**
   * 新增
   */
  static areaAdd (data = {}) {
    return request.post(`${URL.comBasic}/bas-area/add`, data)
  }
  /**
   * 编辑
   */
  static areaEdit (data) {
    return request.put(`${URL.comBasic}/bas-area/edit`, data)
  }
  /**
   * 删除
   */
  static areaRemove (data) {
    return request.delete(`${URL.comBasic}/bas-area/remove`, data)
  }
  /**
   * 查询
   * @param {} data
   */
  static cityList (data = {}) {
    return request.get(`${URL.comBasic}/bas-city/list`, data)
  }
  /**
   * 查询
   * @param {} data
   */
  static cityQueryList (data = {}) {
    return request.get(`${URL.comBasic}/bas-city/queryList`, data)
  }
  /**
   * 新增
   */
  static cityAdd (data = {}) {
    return request.post(`${URL.comBasic}/bas-city/add`, data)
  }
  /**
   * 编辑
   */
  static cityEdit (data) {
    return request.put(`${URL.comBasic}/bas-city/edit`, data)
  }
  /**
   * 删除
   */
  static cityRemove (data) {
    return request.delete(`${URL.comBasic}/bas-city/remove`, data)
  }
  /**
   * 查询
   * @param {} data
   */
  static provinceList (data = {}) {
    return request.get(`${URL.comBasic}/bas-province/list`, data)
  }
  /**
   * 查询不分页
   * @param {} data
   */
  static provinceQueryList (data = {}) {
    return request.get(`${URL.comBasic}/bas-province/queryList`, data)
  }
  /**
   * 新增
   */
  static provinceAdd (data = {}) {
    return request.post(`${URL.comBasic}/bas-province/add`, data)
  }
  /**
   * 编辑
   */
  static provinceEdit (data) {
    return request.put(`${URL.comBasic}/bas-province/edit`, data)
  }
  /**
   * 删除
   */
  static provinceRemove (data) {
    return request.delete(`${URL.comBasic}/bas-province/remove`, data)
  }
  /**
   * 查询国家
   * @param {} data
   */
  static countryList (data = {}) {
    return request.get(`${URL.comBasic}/bas-country/list`, data)
  }
  static treeList (data = {}) {
    return request.get(`/business-basic/bas-country/treeList`, data)
  }
}
